﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;

namespace NFinal.Common.TaskLogger
{
    public interface ITaskLogger
    {
        CancellationToken CancellationToken { get; }
        bool CancelCurrentTask();
        string Name { get; }
        void LogInfo(string message);
        void LogError(string error);
        void LogWarn(string warn);
        void LogExp(Exception ex);
        void LogExp(Exception ex, string message);
        void LogPercentage(double percentage, string name = null);
    }
}
